<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>湖北职业技术学院财务信息查询系统</title>
<LINK href="style/css.css" type="text/css" rel="stylesheet">
<LINK href="css/stylew.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
function deleate(id){
	if (confirm("删除此数据后可能导致操作异常,您确定要删除此条信息？")){
	window.location.href='salaryItemType.do?method=delete&id='+id;
	}
	return false;
}
</script>
</head>
<body>
<center>
<table class="tableline" id="Table1" cellspacing="1" cellpadding="0"
	width="80%" border="0">
	<tr>
		<td colspan="5" class="STYLE4" align="center" bgcolor="#ffffff"
			colspan="2" height="40">工资条目类型管理</td>
	</tr>
	<tr>
		<td colspan="5">
		<table width="100%" border="0" bgcolor="#ffffff">
			<html:form action="salaryItemType.do?method=save" method="post">
				<tr>
					<td width="45%" height="30" align="right">工资条目类型名称： <html:text
						property="name" value="${type.name }" /><font color="red">&nbsp;${error
					}</font></td>
					<td width="55%" align="left">&nbsp; <html:submit
						value="  添加  " /></td>
				</tr>
			</html:form>
		</table>
		</td>
	</tr>
	<tr align="center">
		<td width="15%" height="40" bgcolor="#ffffff">序号</td>
		<td bgcolor="#ffffff">工资条目类型名称</td>
		<td colspan="2" bgcolor="#ffffff">操作</td>
	</tr>
	<c:if test="${!empty types}">
		<c:forEach items="${types}" var="type">
			<tr align="center">
				<td bgcolor="#ffffff">${type.id }</td>
				<td bgcolor="#ffffff">${type.name }</td>
				<td width="15%" bgcolor="#ffffff"><a
					href="salaryItemType.do?method=toUpdate&id=${type.id }">修改</a></td>
				<td width="15%" bgcolor="#ffffff"><a href="javascript:void(0);"
					onClick="deleate(${type.id})">删除</a></td>
			</tr>
		</c:forEach>
	</c:if>
</table>
</center>
</body>
</html>